package chapter_09;


abstract class Incomplete implements Callback {
	// 局部实现
	/*
	类Incomplete没有实现callback( )方法，必须定义成抽象类。任何继承Incomplete
	的类都必须实现callback( )方法或者它自己定义成abstract类。
	 */
	int a, b;

	void show() {
		System.out.println(a + " " + b);
	}
}


class AnotherClient extends Incomplete {
	
	public void callback(int p) {
		System.out.println("Another version of callback");
		System.out.println("p squared is " + (p * p));
	}
}
